<%--
  Created by IntelliJ IDEA.
  User: WuLiangHang
  Date: 2021/12/20
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    //最小的域对象 只在当前JSP页面内有效
    pageContext.setAttribute("key1", "pageContext");
    request.setAttribute("key1", "request");
    session.setAttribute("key1", "session");
//    session.invalidate();
    application.setAttribute("key1", "application");
%>
${pageScope.key1}<br/>
${requestScope.key1}<br/>
${sessionScope.key1}<br/>
${applicationScope.key1}<br/>

</body>
</html>
